
import facilityLoseService from "@/serive/facilityLoseService";

export default{
    state:{
        LosePage:[]
    },
    getters:{
        getLosePage(state){
            return[...state.getLosePage]
        }
    },
    mutations:{
        setTest(state,data){
            console.log(data);
            state.LosePage=data;
        }
    },
    actions:{//异步操作
        async LosePage({commit},{limit,page,facilityName}){
            let result=await facilityLoseService.LosePage(limit,page,facilityName);
            commit("setTest",result.data);
            return result
        }

    }
}